﻿
using System.Collections.Generic;
using Red.Core;

namespace Red.Controls.ViewModels
{
    public class SelectPendingChangelistViewModel : ViewModel
    {
        #region Data
        
        private List<PendingChangelistInfo> _changelists = new List<PendingChangelistInfo>();
        private PendingChangelistInfo _selectedChangelist;

        #endregion Data

        #region Properties

        public List<PendingChangelistInfo> Changelists
        {
            get { return _changelists; }
            set
            {
                if ( _changelists == value )
                    return;

                _changelists = value;
                OnPropertyChanged();
            }
        }

        public PendingChangelistInfo SelectedChangelist
        {
            get { return _selectedChangelist; }
            set
            {
                if ( _selectedChangelist == value )
                    return;

                _selectedChangelist = value;
                OnPropertyChanged();
            }
        }

        #endregion Properties
    }
}
